﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Net_SCADA;

namespace WZXC_GBL_QUERY
{
    public partial class Form_Query : Form
    {
        public NetLine netline = new NetLine();

        public Form_Query()
        {
            InitializeComponent();
        }

        private void btn_QueryDataByDay_Click(object sender , EventArgs e)
        {
            if (QueryForms.fmByDay != null)
            {
                if (!QueryForms.fmByDay.IsDisposed) QueryForms.fmByDay.Dispose();
            }
            QueryForms.fmByDay = new Form_NewQueryDataByDay();
            QueryForms.fmByDay.ShowDialog();
        }

        private void Form_Query_Load(object sender , EventArgs e)
        {
            DBBase.LoadDBSet();
            netline.NetlineLoad();
        }

        private void btn_QueryBoxByDay_Click(object sender , EventArgs e)
        {
            Form_QueryBoxByDay fmbox=new Form_QueryBoxByDay();
            fmbox.ShowDialog();
        }

        private void btn_QueryClose_Click(object sender , EventArgs e)
        {
            Application.ExitThread();
            
        }

        private void btn_DataBackup_Click(object sender , EventArgs e)
        {
            Hide();
            Application.DoEvents();
            Form_DataBackup fmback=new Form_DataBackup(this);
            fmback.Show();
        }
    }
}
